Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
resources
/
views
/
School
/
Users
/
Filename :
show.blade.php
back
Copy
@extends('Admin.layout.main') @section('content') @section('pagestylesheet') <style type="text/css"> table tr td, table tr th, table{ border: 1px solid gainsboro; } </style> @stop <div id="main"> <div class="row"> <div class="col s12"> <div class="container"> <div class="section"> <div class="row"> <div class="col s12 m12 l5"> <div id="Form-advance" class="card card card-default scrollspy"> <div class="card-content text-center"> <h4 class="card-title">Student Details</h4> <table> <tbody> <tr> <td class="tdfirstclass text-center" width="30%"><b>Student Name</b></td> <td class="text-center">{{ $users->full_name }}</td> </tr> <tr> <td class="tdfirstclass text-center"><b>Email</b></td> <td class="text-center">{{ $users->email }}</td> </tr> <tr> <td class="tdfirstclass text-center"><b>Mobile</b></td> <td class="text-center">{{ $users->mobile }}</td> </tr> <tr> <td class="tdfirstclass text-center"><b>SP Balance</b></td> <td class="text-center">{{ $sp_wallet['balance'] }}</td> </tr> <tr> <td class="tdfirstclass text-center"><b>Profile Picture</b></td> <td class="text-center"><img id="imgs" width="45" src="{{ asset($users->profile_pic) }}" /> </td> </tr> </tbody> </table> </div> </div> </div> <div class="col s12 m12 l4"> <div id="Form-advance" class="card card card-default scrollspy"> <div class="card-content text-center"> <h4 class="card-title">Claim Summary</h4> <table id="userTable" class="display" border="1"> <thead> <tr> <th class="text-center">Claim Status</th> <th class="text-center">Number of Claims</th> </tr> </thead> <tbody> @if(isset($claims_summary_arr)) @foreach ($claims_summary_arr as $claims_summary) <tr> <td class="text-center">{{ $claims_summary['status'] }}</td> <td class="text-center">{{ $claims_summary['count'] }}</td> </tr> @endforeach @endif </tbody> </table> </div> </div> </div> <div class="col s12 m12 l8"> <div id="Form-advance" class="card card card-default scrollspy"> <div class="card-content text-center"> <h4 class="card-title">Groups the student is part of</h4> <div class="row"> <table id="userTable" class="display" border="1"> <thead> <tr> <th class="text-center">Group Image</th> <th class="text-center">Group Name</th> <th class="text-center">Owner Name / Email</th> <th class="text-center">Approved Claims</th> </tr> </thead> <tbody> @if(isset($membership_groups)) @foreach ($membership_groups as $group) <tr> <td class="text-center"><img id="imgs" width="45" src="{{ asset('group_images/thumb/' . $group->group_image) }}" /> <td class="text-center">{{ $group->group_name }}</td> <td class="text-center">{{ $group->owner->name }} / {{ $group->owner->email }}</td> <td class="text-center">{{ isset($group_wise_approved_claims[$group->group_id]) ? $group_wise_approved_claims[$group->group_id] : 0 }}</td> </td> </tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> <div class="col s12 m12 l4"> <div id="Form-advance" class="card card card-default scrollspy"> <div class="card-content text-center"> <h4 class="card-title">Segments the student is part of</h4> <div class="row"> @if($users->studentSegments($school->school_id)->get() != null) @php $studentSegments = $users->studentSegments($school->school_id)->get(); @endphp <table id="userTable" class="display" border="1"> <thead> <tr> <th class="text-center">Segment Name</th> <th class="text-center">Segment Description</th> </tr> </thead> <tbody> @foreach ($studentSegments as $segment) <tr> <td class="text-center">{{ $segment->name }}</td> <td class="text-center">{{ $segment->description }}</td> </td> </tr> @endforeach </tbody> </table> @else Not part of any segments. @endif </div> </div> </div> </div> <div class="col s12 m12 l12"> <div id="Form-advance" class="card card card-default scrollspy"> <div class="card-content text-center"> <h4 class="card-title">Latest 10 Claim</h4> <div class="row"> <table id="userTable" class="display" border="1"> <thead> <tr> <th class="text-center">Claim Type</th> <th class="text-center">Claimed Task Title</th> <th class="text-center">Claimed Reward Name</th> <th class="text-center">Claimed Status</th> <th class="text-center">Group Name</th> </tr> </thead> <tbody> @if(isset($all_claims)) @foreach ($all_claims as $claim) <tr> <td class="text-center">{{ $claim->claim_entity_type }}</td> <td class="text-center">{{ $claim->task ? $claim->task->task_title : 'No Active Task Claimed' }}</td> <td class="text-center">{{ $claim->product ? $claim->product->product_name : 'No Active Reward Claimed/Purchased' }}</td> <td class="text-center">{{ $claim->status }}</td> <td class="text-center">{{ $claim->groupObj ? $claim->groupObj->group_name : 'No Active Group Associated'}}</td> </tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> @endsection